﻿@model mvsServiciosMusicales.Models.Sucursal

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Sucursal</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nombre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nombre)
            @Html.ValidationMessageFor(model => model.Nombre)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Direccion1, "Direccion")
        </div>
        <div class="editor-field">
            @Html.Label("Calle:")
            @Html.EditorFor(model => model.Direccion1.Calle)
            @Html.ValidationMessageFor(model => model.Direccion1.Calle)
            @Html.Label("Numero:")
            @Html.EditorFor(model => model.Direccion1.Numero)
            @Html.ValidationMessageFor(model => model.Direccion1.Numero)
            @Html.Label("Piso:")
            @Html.EditorFor(model => model.Direccion1.Piso)
            @Html.ValidationMessageFor(model => model.Direccion1.Piso)
            @Html.Label("Departamento:")
            @Html.EditorFor(model => model.Direccion1.Departamento)
            @Html.ValidationMessageFor(model => model.Direccion1.Departamento)
            @Html.Label("Codigo Postal:")
            @Html.EditorFor(model => model.Direccion1.CodigoPostal)
            @Html.ValidationMessageFor(model => model.Direccion1.CodigoPostal)

            @* lista desplegable *@
            @*@Html.DropDownList("Direccion", String.Empty)*@
            @*@Html.ValidationMessageFor(model => model.Direccion)*@
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IdZona, "Zona")
        </div>
        <div class="editor-field">
            @Html.DropDownList("IdZona", String.Empty)
            @Html.ValidationMessageFor(model => model.IdZona)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Coordinadora)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Coordinadora)
            @Html.ValidationMessageFor(model => model.Coordinadora)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
